/**
 * sku 相关
 */

import type { spuImageModel } from '@/api/product/model/spu'

export interface skuListResponse {
  records: skuInfoModel[],
  total: number,
}

export interface skuImageModel extends spuImageModel {
  spuImgId?: number
}
export type skuImageListModel = skuImageModel[]

export type skuSaleAttrValueModel = {
  saleAttrValueId: number
} | string
export type skuSaleAttrValueListModel = skuSaleAttrValueModel[]

export type skuAttrValueModel = {
  attrId: number,
  valueId: number,

  id?: number,
  valueName?: string,
} | string
export type skuAttrValueListModel = skuAttrValueModel[]

export interface skuInfoModel {
  id?: number,
  spuId: number,
  category3Id: number, // 设置一个默认值
  skuName: string,
  price: number,
  weight: number,
  skuDesc: string,
  skuAttrValueList: skuAttrValueListModel,
  skuSaleAttrValueList: skuSaleAttrValueListModel,
  skuImageList: skuImageListModel,
  skuDefaultImg: string,
  isSale?: number
}


// let x1: Object = 1
// let x2: object = {}

// export / export default  import

// module.exports / exports  require +

